<%--
  Created by IntelliJ IDEA.
  User: wanghe
  Date: 2016/11/15
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<% request.setAttribute("nav",4); %>
<html>
<jsp:include page="include/header.jsp"></jsp:include>
<head>
    <title></title>
</head>
<body>
<div class="container-fluid">
    <jsp:include page="include/topnav.jsp"></jsp:include>
    <div class="row">
        <jsp:include page="include/leftnav.jsp"></jsp:include>
        <div class="col-lg-10 col-md-9">
            <h1 class="page-header"><i class="fa fa-file-text-o"></i>&nbsp;所有用户信息列表</h1>
            <div class="data-container">
                <table id="table" class="table table-bordered text-center">
                    <tr class="success">
                        <td>用户名称</td>
                        <td>用户昵称</td>
                        <td>QQ号</td>
                        <td>电话号码</td>
                        <td>创建时间</td>
                        <td>操作</td>
                    </tr>
                    <c:forEach items="${sbyPassportList}" var="sbyList">
                        <tr>
                            <td>${sbyList.username}</td>
                            <td>${sbyList.nickname}</td>
                            <td>${sbyList.qq}</td>
                            <td>${sbyList.phoneNumber}</td>
                            <td><fmt:formatDate value="${sbyList.createAt}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                            <td style="width: 300px;">
                                <input type="button" class="btn btn-primary btn-sm resetpwd" id="${sbyList.id}" data-toggle="modal" data-target="#myModal" value="重置密码"/>
                                <input type="button" class="btn btn-primary btn-sm" onclick="window.location.href = '/admin/jumpUpdatePage?id=${sbyList.id}'" value="修改信息"/>
                                <input type="button" class="btn btn-primary btn-sm deleteuser" id="${sbyList.id}" value="删除信息"/>
                            </td>
                        </tr>
                    </c:forEach>
                </table>
            </div>
        </div>
    </div>
</div>
<jsp:include page="include/footer.jsp"></jsp:include>
<script src="/assets/js/project/resetpwd.js" type="text/javascript"></script>
<script type="text/javascript">
    var resetPwd = new ResetPwd();
</script>
</body>
</html>
